package com.example.article.controller;

import com.example.article.pojo.Author;
import com.example.article.service.AuthorService;
import com.usian.model.article.pojos.ApAuthor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作者控制器
 *
 */
@RestController
@RequestMapping("/article/author/v1")
public class AuthorController {
    @Autowired
    AuthorService authorService;
    
    @GetMapping("get_author_by_id")
    public ApAuthor getAuthorById(Integer id){
        return authorService.getAuthorById(id);
    }
}
